package org.example.enums;


public enum ResultEnum {

    EXPIRE(998,"登录过期"),
    LOGIN_FAILED(999,"登录失败"),
    LOGIN_SUCCESS(1000,"登录成功"),
    SUCCESS(1001, "接口调用成功"),
    VALIDATE_FAILED(1002, "参数校验失败"),
    COMMON_FAILED(1003, "接口调用失败"),
    FORBIDDEN(1004, "没有权限访问资源");
    private final Integer code;
    private final String message;

    ResultEnum(int code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
